package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 客户管理对象 customer
 * 
 * @author ruoyi
 * @date 2025-10-08
 */
public class Customer extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键（自增） */
    private Long id;

    /** 客户类型：1=个人，2=企业 */
    @Excel(name = "客户类型：1=个人，2=企业")
    private Long type;

    /** 个人姓名/企业名称（必填） */
    @Excel(name = "个人姓名/企业名称", readConverterExp = "必=填")
    private String name;

    /** 企业联系人（type=2时必填） */
    @Excel(name = "企业联系人", readConverterExp = "t=ype=2时必填")
    private String contactPerson;

    /** 联系电话（必填） */
    @Excel(name = "联系电话", readConverterExp = "必=填")
    private String phone;

    /** 地址 */
    @Excel(name = "地址")
    private String address;

    /** 客户来源：1=线上，2=线下，3=推荐 */
    @Excel(name = "客户来源：1=线上，2=线下，3=推荐")
    private Long source;

    /** 合作状态：1=活跃，2=休眠 */
    @Excel(name = "合作状态：1=活跃，2=休眠")
    private Long cooperationStatus;

    /** 是否会员：0=普通，1=会员 */
    @Excel(name = "是否会员：0=普通，1=会员")
    private Long isMember;

    /** 会员积分（默认0） */
    @Excel(name = "会员积分", readConverterExp = "默=认0")
    private Long points;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setContactPerson(String contactPerson) 
    {
        this.contactPerson = contactPerson;
    }

    public String getContactPerson() 
    {
        return contactPerson;
    }

    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }

    public void setSource(Long source) 
    {
        this.source = source;
    }

    public Long getSource() 
    {
        return source;
    }

    public void setCooperationStatus(Long cooperationStatus) 
    {
        this.cooperationStatus = cooperationStatus;
    }

    public Long getCooperationStatus() 
    {
        return cooperationStatus;
    }

    public void setIsMember(Long isMember) 
    {
        this.isMember = isMember;
    }

    public Long getIsMember() 
    {
        return isMember;
    }

    public void setPoints(Long points) 
    {
        this.points = points;
    }

    public Long getPoints() 
    {
        return points;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("type", getType())
            .append("name", getName())
            .append("contactPerson", getContactPerson())
            .append("phone", getPhone())
            .append("address", getAddress())
            .append("source", getSource())
            .append("cooperationStatus", getCooperationStatus())
            .append("isMember", getIsMember())
            .append("points", getPoints())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .toString();
    }
}
